package com.aaa.backsystem.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author gyc
 * @since 2020-08-22
 */
@TableName("tbl_wx_danger")
@Data
public class WxDanger extends Model<WxDanger> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "danger_id", type = IdType.AUTO)
    private Integer dangerId;
    private String description;
    @TableField("petrol_station_name")
    private String petrolStationName;
    @TableField("user_name")
    private String userName;
    @TableField("option_name")
    private String optionName;
    @TableField("task_name")
    private String taskName;
    private String img;
    private String status;


    public Integer getDangerId() {
        return dangerId;
    }

    public void setDangerId(Integer dangerId) {
        this.dangerId = dangerId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPetrolStationName() {
        return petrolStationName;
    }

    public void setPetrolStationName(String petrolStationName) {
        this.petrolStationName = petrolStationName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOptionName() {
        return optionName;
    }

    public void setOptionName(String optionName) {
        this.optionName = optionName;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.dangerId;
    }

    @Override
    public String toString() {
        return "WxDanger{" +
        "dangerId=" + dangerId +
        ", description=" + description +
        ", petrolStationName=" + petrolStationName +
        ", userName=" + userName +
        ", optionName=" + optionName +
        ", taskName=" + taskName +
        ", img=" + img +
        ", status=" + status +
        "}";
    }
}
